
package com.lzsoft.IO;

import java.io.File;
import java.io.FilenameFilter;

public class FileNameSelector implements FilenameFilter
{
	 String extension = ".";
	 
	 public FileNameSelector(String fileExtensionNoDot)
	 {
	  extension += fileExtensionNoDot;
	 }
	 
	 @Override
	 public boolean accept(File dir, String name)
	 {
	  return name.endsWith(extension);
	 }
}
